import React from 'react';
import { NavLink, NavLinkProps, useLocation } from 'react-router-dom';


export default function QueryNavLink(props: NavLinkProps) {
	const location = useLocation()
	return (
		<NavLink {...props} to={props.to + location.search} />
	);
}
